using System;
using System.Collections.Generic;

namespace WIAssistant
{
    /// <summary>
    /// When a work item needs to get its state set this helps get from one state to another.
    /// </summary>
    public class StateTransitionInfo
    {
        public StateTransitionInfo()
        {
            IndirectTransitions = new List<Transition>();
        }
        
        /// <summary>
        /// This is the state we want to get to
        /// </summary>
        public String MovedState { get; set; }

        /// <summary>
        /// This is the project ID that this mapping applies to.
        /// If IsDefaultEntry is true then this is ignored.
        /// </summary>
        public int ProjectID { get; set; }

        /// <summary>
        /// If this is true then it means to apply this to any project that does not have an explict mapping.
        /// If this is true then ProjectID is ignored
        /// </summary>
        public bool IsDefaultEntry { get; set; }

        /// <summary>
        /// List of Transitions
        /// </summary>
        public List<Transition> IndirectTransitions { get; set; }
    }
    
}